-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cwgrants): Implement x/cwgrants module #527
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #527 +/- ##
==========================================
- Coverage 65.61% 64.50% -1.12%
==========================================
Files 80 88 +8
Lines 4633 4851 +218
==========================================
+ Hits 3040 3129 +89
- Misses 1436 1556 +120
- Partials 157 166 +9 ☔ View full report in Codecov by Sentry. |
# Conflicts: # CHANGELOG.md # app/app.go # app/keepers/keepers.go # app/upgrades/latest/upgrades.go
// SudoMsg defines the message sudo enum that is sent to the CosmWasm contract. | ||
type SudoMsg struct { | ||
// CWGrant defines the enum variant of the grant message. | ||
CWGrant *CWGrant `json:"cw_grant"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CWGrant to CWFees?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think CWGrant is fine here, whilst the "module name" is CWFees (as it handles fees); what is being sent as request here is a request for a fee grant.
The name is kept as short as possible to avoid extra gas consumption when we traverse the wasm boundary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we going to change CWGrant to CWFees or are we leaving that for the remediation / refactor cycle? LMKWYT
@zanicar I would propose we keep as is, and consider renaming this cwfeegrants, to be in line with cosmos sdk's fee grant module, at nomenclature level, I will create an issue. |
# Conflicts: # CHANGELOG.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.